import React from 'react'
import {NavLink,Outlet} from 'react-router-dom'
import {tolist} from '../../router/page'
import '../../App.scss'
function Home() {
    return (
        <div className='wrap'>
            
            <div className="main">
                <Outlet/>
            </div>
            <div className="footer">
                {
                    tolist.length>0&&tolist.map((v,i)=>{
                        return (
                            v.path&&<NavLink key={i} to={v.path}>{v.name}</NavLink>
                        )
                    })
                }
            </div>
        </div>
    )
}

export default Home
